package com.gba.mark.article.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.data.elasticsearch.annotations.Field;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Article implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id",type = IdType.AUTO)
    //主键
    private Integer id;

    // 所属的工作组id
    private Integer groupId;

    //文章标题
    private String title;

    //文章内容
    private String content;

    //链接
    private String url;

    //文章来源id
    private Integer sourceId;

    //文章发布时间
    private Date date;

    //上传时间
    private Date postDate;


}
